- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用 Jsoup 从网站加载一些图像。我的应用程序不断崩溃。我认为这是因为这行:
Elements divs =((Elements) doc).select("img[src$=.jpg]");
这是 LoadImages 类的代码:
public class LoadImages extends AsyncTask {
private ArrayAdapter adapter;
private ArrayList list;
public LoadImages(ArrayList list, Adapter adapter)
{
this.list = list;
this.adapter = (ArrayAdapter) adapter;
}
protected void onPostExecute(Elements divs) {
// TODO Auto-generated method stub
super.onPostExecute(divs);
for (org.jsoup.nodes.Element div : divs)
{
list.add(div);
}
adapter.notifyDataSetChanged();
}
@Override
protected Object doInBackground(Object... params) {
Document doc = null;
try {
doc = (Document) Jsoup.connect("http://mongol.co.il/").get();
Elements divs =((Elements) doc).select("img[src$=.jpg]");
} catch (IOException e1) {
e1.printStackTrace(); }
return null;
}
}
这也是主类:
public class MainActivity extends Activity{
private ListView listView;
private ArrayAdapter adapter;
private ArrayList list;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.listview);
listView = (ListView) findViewById( R.id.listview);
list = new ArrayList();
adapter = new ArrayAdapter(this,
android.R.layout.simple_list_item_1, list);
listView.setAdapter(adapter);
new LoadImages(list, adapter).execute();
}
}
为什么会崩溃?
04-20 12:52:38.089: I/global(400): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
04-20 12:52:38.539: D/dalvikvm(400): GC_FOR_MALLOC freed 1781 objects / 98016 bytes in 115ms
04-20 12:52:38.649: D/dalvikvm(400): GC_FOR_MALLOC freed 252 objects / 143016 bytes in 95ms
04-20 12:52:38.820: D/dalvikvm(400): GC_FOR_MALLOC freed 90 objects / 434944 bytes in 156ms
04-20 12:52:38.939: D/dalvikvm(400): GC_FOR_MALLOC freed 8 objects / 194848 bytes in 95ms
04-20 12:52:38.949: I/dalvikvm-heap(400): Grow heap (frag case) to 3.288MB for 389136-byte allocation
04-20 12:52:39.119: D/dalvikvm(400): GC_FOR_MALLOC freed 0 objects / 0 bytes in 166ms
04-20 12:52:39.269: D/dalvikvm(400): GC_FOR_MALLOC freed 44 objects / 390808 bytes in 146ms
04-20 12:52:39.659: D/dalvikvm(400): GC_FOR_MALLOC freed 1668 objects / 521136 bytes in 94ms
04-20 12:52:40.399: D/dalvikvm(400): GC_FOR_MALLOC freed 2484 objects / 134640 bytes in 90ms
04-20 12:52:40.699: D/dalvikvm(400): GC_FOR_MALLOC freed 4499 objects / 172528 bytes in 101ms
04-20 12:52:40.699: I/dalvikvm-heap(400): Grow heap (frag case) to 3.682MB for 287718-byte allocation
04-20 12:52:40.880: D/dalvikvm(400): GC_FOR_MALLOC freed 0 objects / 0 bytes in 176ms
04-20 12:52:41.559: D/dalvikvm(400): GC_FOR_MALLOC freed 6721 objects / 326776 bytes in 109ms
04-20 12:52:42.470: D/dalvikvm(400): GC_FOR_MALLOC freed 9512 objects / 399904 bytes in 122ms
04-20 12:52:43.219: D/dalvikvm(400): GC_FOR_MALLOC freed 9557 objects / 402640 bytes in 115ms
04-20 12:52:44.039: D/dalvikvm(400): GC_FOR_MALLOC freed 10870 objects / 452144 bytes in 138ms
04-20 12:52:44.902: D/dalvikvm(400): GC_FOR_MALLOC freed 11333 objects / 486376 bytes in 136ms
04-20 12:52:45.791: D/dalvikvm(400): GC_FOR_MALLOC freed 12106 objects / 505752 bytes in 148ms
04-20 12:52:45.958: D/AndroidRuntime(400): Shutting down VM
04-20 12:52:45.958: W/dalvikvm(400): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
04-20 12:52:46.061: E/AndroidRuntime(400): FATAL EXCEPTION: main
04-20 12:52:46.061: E/AndroidRuntime(400): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mongol/com.example.mongol.MainActivity}: java.lang.ClassCastException: org.jsoup.nodes.Document
04-20 12:52:46.061: E/AndroidRuntime(400): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
04-20 12:52:46.061: E/AndroidRuntime(400): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
04-20 12:52:46.061: E/AndroidRuntime(400): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
04-20 12:52:46.061: E/AndroidRuntime(400): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
04-20 12:52:46.061: E/AndroidRuntime(400): at android.os.Handler.dispatchMessage(Handler.java:99)
04-20 12:52:46.061: E/AndroidRuntime(400): at android.os.Looper.loop(Looper.java:123)
04-20 12:52:46.061: E/AndroidRuntime(400): at android.app.ActivityThread.main(ActivityThread.java:4627)
04-20 12:52:46.061: E/AndroidRuntime(400): at java.lang.reflect.Method.invokeNative(Native Method)
04-20 12:52:46.061: E/AndroidRuntime(400): at java.lang.reflect.Method.invoke(Method.java:521)
04-20 12:52:46.061: E/AndroidRuntime(400): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-20 12:52:46.061: E/AndroidRuntime(400): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-20 12:52:46.061: E/AndroidRuntime(400): at dalvik.system.NativeStart.main(Native Method)
04-20 12:52:46.061: E/AndroidRuntime(400): Caused by: java.lang.ClassCastException: org.jsoup.nodes.Document
04-20 12:52:46.061: E/AndroidRuntime(400): at com.example.mongol.MainActivity.onCreate(MainActivity.java:56)
04-20 12:52:46.061: E/AndroidRuntime(400): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-20 12:52:46.061: E/AndroidRuntime(400): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
04-20 12:52:46.061: E/AndroidRuntime(400): ... 11 more
04-20 12:52:49.409: I/Process(400): Sending signal. PID: 400 SIG: 9
04-20 15:39:54.631: W/KeyCharacterMap(429): No keyboard for id 0
04-20 15:39:54.710: W/KeyCharacterMap(429): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
04-20 15:40:05.249: D/dalvikvm(429): GC_EXPLICIT freed 994 objects / 71000 bytes in 128ms
04-20 15:49:13.209: I/global(458): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
04-20 15:49:13.439: D/dalvikvm(458): GC_FOR_MALLOC freed 1802 objects / 101888 bytes in 103ms
04-20 15:49:13.560: D/dalvikvm(458): GC_FOR_MALLOC freed 263 objects / 143728 bytes in 110ms
04-20 15:49:13.669: D/dalvikvm(458): GC_FOR_MALLOC freed 122 objects / 436400 bytes in 100ms
04-20 15:49:13.769: D/dalvikvm(458): GC_FOR_MALLOC freed 3 objects / 194656 bytes in 93ms
04-20 15:49:13.779: I/dalvikvm-heap(458): Grow heap (frag case) to 3.285MB for 389136-byte allocation
04-20 15:49:13.899: D/dalvikvm(458): GC_FOR_MALLOC freed 0 objects / 0 bytes in 116ms
04-20 15:49:14.009: D/dalvikvm(458): GC_FOR_MALLOC freed 44 objects / 390808 bytes in 100ms
04-20 15:49:14.739: D/dalvikvm(458): GC_FOR_MALLOC freed 1683 objects / 528096 bytes in 344ms
04-20 15:49:15.899: D/dalvikvm(458): GC_FOR_MALLOC freed 2471 objects / 125872 bytes in 136ms
04-20 15:49:16.298: D/dalvikvm(458): GC_FOR_MALLOC freed 4499 objects / 172424 bytes in 115ms
04-20 15:49:16.298: I/dalvikvm-heap(458): Grow heap (frag case) to 3.680MB for 287718-byte allocation
04-20 15:49:16.418: D/dalvikvm(458): GC_FOR_MALLOC freed 0 objects / 0 bytes in 112ms
04-20 15:49:17.469: D/dalvikvm(458): GC_FOR_MALLOC freed 6831 objects / 326392 bytes in 108ms
04-20 15:49:18.499: D/dalvikvm(458): GC_FOR_MALLOC freed 9478 objects / 399328 bytes in 122ms
04-20 15:49:19.869: D/dalvikvm(458): GC_FOR_MALLOC freed 9571 objects / 402800 bytes in 125ms
04-20 15:49:21.090: D/dalvikvm(458): GC_FOR_MALLOC freed 10892 objects / 452648 bytes in 251ms
04-20 15:49:22.429: D/dalvikvm(458): GC_FOR_MALLOC freed 11307 objects / 484816 bytes in 184ms
04-20 15:49:23.689: D/dalvikvm(458): GC_FOR_MALLOC freed 13250 objects / 550520 bytes in 244ms
04-20 15:49:23.849: W/dalvikvm(458): threadid=7: thread exiting with uncaught exception (group=0x4001d800)
04-20 15:49:23.979: E/AndroidRuntime(458): FATAL EXCEPTION: AsyncTask #1
04-20 15:49:23.979: E/AndroidRuntime(458): java.lang.RuntimeException: An error occured while executing doInBackground()
04-20 15:49:23.979: E/AndroidRuntime(458): at android.os.AsyncTask$3.done(AsyncTask.java:200)
04-20 15:49:23.979: E/AndroidRuntime(458): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
04-20 15:49:23.979: E/AndroidRuntime(458): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
04-20 15:49:23.979: E/AndroidRuntime(458): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
04-20 15:49:23.979: E/AndroidRuntime(458): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
04-20 15:49:23.979: E/AndroidRuntime(458): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
04-20 15:49:23.979: E/AndroidRuntime(458): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
04-20 15:49:23.979: E/AndroidRuntime(458): at java.lang.Thread.run(Thread.java:1096)
04-20 15:49:23.979: E/AndroidRuntime(458): Caused by: java.lang.ClassCastException: org.jsoup.nodes.Document
04-20 15:49:23.979: E/AndroidRuntime(458): at com.example.mongol.LoadImages.doInBackground(LoadImages.java:42)
04-20 15:49:23.979: E/AndroidRuntime(458): at android.os.AsyncTask$2.call(AsyncTask.java:185)
04-20 15:49:23.979: E/AndroidRuntime(458): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
04-20 15:49:23.979: E/AndroidRuntime(458): ... 4 more
04-20 15:49:37.699: I/Process(458): Sending signal. PID: 458 SIG: 9
04-20 15:49:52.489: I/global(468): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
04-20 15:49:53.269: D/dalvikvm(468): GC_FOR_MALLOC freed 1829 objects / 102928 bytes in 115ms
04-20 15:49:53.371: D/dalvikvm(468): GC_FOR_MALLOC freed 268 objects / 143944 bytes in 84ms
04-20 15:49:53.469: D/dalvikvm(468): GC_FOR_MALLOC freed 122 objects / 436400 bytes in 94ms
04-20 15:49:53.562: D/dalvikvm(468): GC_FOR_MALLOC freed 3 objects / 194656 bytes in 82ms
04-20 15:49:53.571: I/dalvikvm-heap(468): Grow heap (frag case) to 3.286MB for 389136-byte allocation
04-20 15:49:53.749: D/dalvikvm(468): GC_FOR_MALLOC freed 0 objects / 0 bytes in 176ms
04-20 15:49:53.849: D/dalvikvm(468): GC_FOR_MALLOC freed 49 objects / 391000 bytes in 83ms
04-20 15:49:54.190: D/dalvikvm(468): GC_FOR_MALLOC freed 1680 objects / 528016 bytes in 84ms
04-20 15:49:54.888: D/dalvikvm(468): GC_FOR_MALLOC freed 2471 objects / 125776 bytes in 109ms
04-20 15:49:55.170: D/dalvikvm(468): GC_FOR_MALLOC freed 4499 objects / 172400 bytes in 106ms
04-20 15:49:55.170: I/dalvikvm-heap(468): Grow heap (frag case) to 3.680MB for 287718-byte allocation
04-20 15:49:55.319: D/dalvikvm(468): GC_FOR_MALLOC freed 0 objects / 0 bytes in 149ms
04-20 15:49:55.958: D/dalvikvm(468): GC_FOR_MALLOC freed 6830 objects / 326368 bytes in 126ms
04-20 15:49:56.620: D/dalvikvm(468): GC_FOR_MALLOC freed 9475 objects / 398952 bytes in 116ms
04-20 15:49:57.329: D/dalvikvm(468): GC_FOR_MALLOC freed 9550 objects / 402112 bytes in 139ms
04-20 15:49:58.140: D/dalvikvm(468): GC_FOR_MALLOC freed 10895 objects / 452624 bytes in 139ms
04-20 15:49:58.959: D/dalvikvm(468): GC_FOR_MALLOC freed 11316 objects / 485416 bytes in 151ms
04-20 15:49:59.989: D/dalvikvm(468): GC_FOR_MALLOC freed 12105 objects / 505736 bytes in 281ms
04-20 15:50:00.270: W/dalvikvm(468): threadid=7: thread exiting with uncaught exception (group=0x4001d800)
04-20 15:50:00.279: E/AndroidRuntime(468): FATAL EXCEPTION: AsyncTask #1
04-20 15:50:00.279: E/AndroidRuntime(468): java.lang.RuntimeException: An error occured while executing doInBackground()
04-20 15:50:00.279: E/AndroidRuntime(468): at android.os.AsyncTask$3.done(AsyncTask.java:200)
04-20 15:50:00.279: E/AndroidRuntime(468): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
04-20 15:50:00.279: E/AndroidRuntime(468): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
04-20 15:50:00.279: E/AndroidRuntime(468): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
04-20 15:50:00.279: E/AndroidRuntime(468): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
04-20 15:50:00.279: E/AndroidRuntime(468): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
04-20 15:50:00.279: E/AndroidRuntime(468): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
04-20 15:50:00.279: E/AndroidRuntime(468): at java.lang.Thread.run(Thread.java:1096)
04-20 15:50:00.279: E/AndroidRuntime(468): Caused by: java.lang.ClassCastException: org.jsoup.nodes.Document
04-20 15:50:00.279: E/AndroidRuntime(468): at com.example.mongol.LoadImages.doInBackground(LoadImages.java:42)
04-20 15:50:00.279: E/AndroidRuntime(468): at android.os.AsyncTask$2.call(AsyncTask.java:185)
04-20 15:50:00.279: E/AndroidRuntime(468): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
04-20 15:50:00.279: E/AndroidRuntime(468): ... 4 more
04-20 15:50:04.700: I/Process(468): Sending signal. PID: 468 SIG: 9
04-20 15:52:50.449: I/global(499): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
04-20 15:52:50.959: D/dalvikvm(499): GC_FOR_MALLOC freed 1845 objects / 103584 bytes in 98ms
04-20 15:52:51.049: D/dalvikvm(499): GC_FOR_MALLOC freed 273 objects / 144160 bytes in 88ms
04-20 15:52:51.159: D/dalvikvm(499): GC_FOR_MALLOC freed 122 objects / 436400 bytes in 84ms
04-20 15:52:51.249: D/dalvikvm(499): GC_FOR_MALLOC freed 3 objects / 194656 bytes in 87ms
04-20 15:52:51.259: I/dalvikvm-heap(499): Grow heap (frag case) to 3.286MB for 389136-byte allocation
04-20 15:52:51.441: D/dalvikvm(499): GC_FOR_MALLOC freed 0 objects / 0 bytes in 177ms
04-20 15:52:51.549: D/dalvikvm(499): GC_FOR_MALLOC freed 49 objects / 391000 bytes in 91ms
04-20 15:52:51.909: D/dalvikvm(499): GC_FOR_MALLOC freed 1680 objects / 528008 bytes in 87ms
04-20 15:52:52.599: D/dalvikvm(499): GC_FOR_MALLOC freed 2471 objects / 125840 bytes in 90ms
04-20 15:52:52.889: D/dalvikvm(499): GC_FOR_MALLOC freed 4499 objects / 172424 bytes in 117ms
04-20 15:52:52.889: I/dalvikvm-heap(499): Grow heap (frag case) to 3.680MB for 287718-byte allocation
04-20 15:52:52.989: D/dalvikvm(499): GC_FOR_MALLOC freed 0 objects / 0 bytes in 94ms
04-20 15:52:53.639: D/dalvikvm(499): GC_FOR_MALLOC freed 6828 objects / 326288 bytes in 125ms
04-20 15:52:54.419: D/dalvikvm(499): GC_FOR_MALLOC freed 9477 objects / 398960 bytes in 103ms
04-20 15:52:55.079: D/dalvikvm(499): GC_FOR_MALLOC freed 9569 objects / 403072 bytes in 109ms
04-20 15:52:55.911: D/dalvikvm(499): GC_FOR_MALLOC freed 10890 objects / 452384 bytes in 135ms
04-20 15:52:56.719: D/dalvikvm(499): GC_FOR_MALLOC freed 11307 objects / 485008 bytes in 127ms
04-20 15:52:57.619: D/dalvikvm(499): GC_FOR_MALLOC freed 12099 objects / 505496 bytes in 165ms
04-20 15:52:57.789: W/dalvikvm(499): threadid=7: thread exiting with uncaught exception (group=0x4001d800)
04-20 15:52:57.799: E/AndroidRuntime(499): FATAL EXCEPTION: AsyncTask #1
04-20 15:52:57.799: E/AndroidRuntime(499): java.lang.RuntimeException: An error occured while executing doInBackground()
04-20 15:52:57.799: E/AndroidRuntime(499): at android.os.AsyncTask$3.done(AsyncTask.java:200)
04-20 15:52:57.799: E/AndroidRuntime(499): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
04-20 15:52:57.799: E/AndroidRuntime(499): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
04-20 15:52:57.799: E/AndroidRuntime(499): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
04-20 15:52:57.799: E/AndroidRuntime(499): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
04-20 15:52:57.799: E/AndroidRuntime(499): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
04-20 15:52:57.799: E/AndroidRuntime(499): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
04-20 15:52:57.799: E/AndroidRuntime(499): at java.lang.Thread.run(Thread.java:1096)
04-20 15:52:57.799: E/AndroidRuntime(499): Caused by: java.lang.ClassCastException: org.jsoup.nodes.Document
04-20 15:52:57.799: E/AndroidRuntime(499): at com.example.mongol.LoadImages.doInBackground(LoadImages.java:42)
04-20 15:52:57.799: E/AndroidRuntime(499): at android.os.AsyncTask$2.call(AsyncTask.java:185)
04-20 15:52:57.799: E/AndroidRuntime(499): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
04-20 15:52:57.799: E/AndroidRuntime(499): ... 4 more
04-20 15:53:07.380: I/Process(499): Sending signal. PID: 499 SIG: 9
最佳答案
您将从 doInBackground() 返回 null。将代码更改为此,它将起作用:
Document doc = null;
try {
doc = (Document) Jsoup.connect("http://mongol.co.il/").get();
Elements divs =((Elements) doc).select("img[src$=.jpg]");
} catch (IOException e1) {
e1.printStackTrace(); }
return divs;
关于java - 将图像从网站加载到 Android 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16122678/
我有这个网站,这个特定页面是安全的,但是当它回发时,它回发到一个不安全的页面。如何解决? 我正在使用 ASP.NET 向导。我有这个页面 - checkout.aspx,页面包含这个控件 checko
我有 2 个 azure 网站 - 两个独立的项目 我现在有 2 个网址: myazurewebsite.azurewebsites.net myazureblog.azurewebsites.net
我有 2 个 azure 网站 - 两个独立的项目 我现在有 2 个网址: myazurewebsite.azurewebsites.net myazureblog.azurewebsites.net
环境: 旧网站: React 托管在 Heroku URL( http://sameurl.com ) 新网站: Java 托管在 Heroku URL ( http://sameurl.com )
我已在 Windows Azure 上注册了一个测试帐户来对其进行测试。我构建了一个 Hello world ASP.NET Web 应用程序 + 数据库只是为了测试。 我安装了 Visual Stu
我有一个可以收集和显示各种测量值的产品(不会详细介绍)。正如人们所期望的那样,显示部分是一个数据库+建立在其之上的网站(使用 Symfony)。 但是,我们可能还会创建一个 API 来向第三方公开数据
这个问题在这里已经有了答案: Software keyboard resizes background image on Android (16 个答案) 关闭 8 年前。 我有一个类似的问题:So
这个问题似乎很常见,但我真的无法根据现有答案解决问题。 我有一个简单的 maven 项目,没有任何复杂的部署配置等,并且想在点击“mvn site”时生成一个 Maven CheckStyle 报告。
有没有人看过有关何时进行横向扩展与纵向扩展的最佳选择的任何分析或信息。什么时候一个比另一个更有意义。 目前,在标准模式和基本模式下,2 个小型实例的费用与 1 个中型实例的费用相同。 拥有 2 个小型
有没有办法找到 azure 网站何时停止? (我通过门户网站停止了网站,但我不记得是什么时候......) 我正在寻找一些日志,但没有找到任何有用的内容。 谢谢。 最佳答案 您拥有的最接近的是 azu
我目前在 Azure VM 的 IIS 中拥有一个网站。我已将该站点复制到 2 个可用区域中的 2 个虚拟机上。 这可以保护网站免遭停机。 我需要为高负载时刻实现一些可扩展性。这似乎就是创建音阶集的目
我有一个托管在 Azure 上的网站 ( http://mike-ward.azurewebsites.net/ )。我从 Azure 门户设置了一个指向(引用?)我的网站的 Azure CDN。根据
我有一个 Azure 网站(不是 Web 角色),有 2 个槽:生产和暂存。 我只想为生产插槽启用 CDN,而不是为登台启用,问题是我找不到识别主机插槽的方法。 RoleEnvironment 不可用
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提出有关书籍、工具、软件库等建议的问题。您可以编辑问题,以便可以用事实和引用来回答它。 4年前关
我们正在考虑将一些网站从 Azure 云服务迁移到 Azure 网站(事情似乎就是这样进行的)。显然,我们被明确告知云服务不会保留文件系统状态,因为它们会在机器故障时重新部署。 我假设网站是基于 Bl
我有一个 Azure 网站,需要使用在 VM 上运行的 Elasticsearch 服务。 虽然我需要能够锁定对 Elasticsearch 的访问,以便只有 Azure 网站可以访问它,但我似乎无法
我有一个 azure 网站,位于 yis3.azurewebsites.net - 我已将其提升为“共享”网站,以便我可以使用自定义域。我拥有从 123-reg.co.uk 购买的域名 yorkshi
我正在使用 abcPDF 动态创建 PDF。 我想保存这些 PDF,以便客户随时检索。最简单的方法(也是我现在在当前服务器上所做的方法)是将完成的 PDF 保存到文件系统。 看来我一直坚持使用 blo
我们正在尝试了解 Windows Azure 管理 API 为 Azure 网站(而非 Webroles)返回的监控数据的复杂性 例如,下图描述了为 CPUTime 检索的数据点。它似乎表明,在晚上
看起来真的很愚蠢,因为我找不到它: 门户网站似乎不太直观,我如何为一个“网站”付费并在其中运行最多 500 个网站?我想当我通过单击左下角的加号添加“网站”时,我添加了整个虚拟机而不是子站点。如何仅添
我是一名优秀的程序员,十分优秀!